package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IMiguVideoSearchDAO;
import org.jsbd.boss.domian.MiguVideoRetentDoNumStatistics;
import org.jsbd.boss.domian.MiguVideoSearchVo;
import org.springframework.stereotype.Repository;

@Repository("miguVideoSearchDao")
public class MiguVideoSearchDAOImpl extends CrackBaseDao implements IMiguVideoSearchDAO {

	@Override
	public Map<String, Object> selectNewTaskExecListPage(DataGridModel page, MiguVideoSearchVo miguVideoSearchVo) {
		miguVideoSearchVo = (miguVideoSearchVo == null ? new MiguVideoSearchVo() : miguVideoSearchVo);
		miguVideoSearchVo.setPageInfo(page);
	    Map<String, Object> results = new HashMap<String, Object>();
	    results.put("rows", super.queryForList("qy_migu_video_search.SELECT_NEW_TASK_EXEC_LIST", miguVideoSearchVo));
	    results.put("total", super.queryForCount("qy_migu_video_search.SELECT_NEW_TASK_EXEC_COUNT", miguVideoSearchVo));
	    return results;
	}
	
	@Override
	public List<MiguVideoRetentDoNumStatistics> selectRetentTaskExecList(MiguVideoSearchVo miguVidoeSearchVo) {
	    return super.queryForList("qy_migu_video_search.SELECT_RETENT_TASK_EXEC", miguVidoeSearchVo);
	}

}
